package com.itheima.youdianda.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.youdianda.common.R;
import com.itheima.youdianda.pojo.YddArticle;

public interface YddArticleService extends IService<YddArticle> {
    /**
     * 文章列表-分页
     * @param start_time
     * @param end_time
     * @param cateid
     * @param title
     * @param page1
     * @param pageSize
     * @return
     */
    R getPage(String start_time, String end_time, String cateid, String title, Long page1, Long pageSize);

    /**
     * 删除文章
     * @param id
     * @return
     */
    R deleteYddarticle(Integer id);

    /**
     * 查看详情(数据回显)
     * @param id
     * @return
     */
    R getYddarticleById(Integer id);

    /**
     * 修改文章
     * @param yddArticle
     * @return
     */
    R updateYddarticle(YddArticle yddArticle);

    /**
     * 添加文章
     * @param yddArticle
     * @return
     */
    R addYddarticle(YddArticle yddArticle);
}
